package com.springboot.myspringboot.Service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.myspringboot.Service.SolidTableService;
import com.springboot.myspringboot.entity.AreaCount;
import com.springboot.myspringboot.entity.SolidTable;
import com.springboot.myspringboot.mapper.SolidTableMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SolidTableServiceImpl extends ServiceImpl<SolidTableMapper, SolidTable> implements SolidTableService {

    @Resource
    SolidTableMapper solidTableMapper;
    @Override
    public List<SolidTable> selectByArea(Integer id) {
        return solidTableMapper.findAllByAreaId(id);
    }

    @Override
    public List<AreaCount> findAreaCount() {
        return solidTableMapper.findAreaCount();
    }
}
